package com.example.sesata.service;

import com.example.sesata.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @author chensixiang chensixiang1234@gmail.com
 */
@FeignClient("seata-account-service")
public interface AccountService {

    @PutMapping("/account/decrease")
    CommonResult<Object> decrease(@RequestParam("userId") Long userId, @RequestParam("money") BigDecimal money);

}
